|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.vtp.framework.interactions.core.support.Widget
org.eclipse.vtp.framework.interactions.voice.vxml.Choice
public class Choice
The Choice class represents an option within a
Menu element. The caller is presented the output and can
select this option by entering the proper DTMF sequence or verbally matching
its grammar.
If the CED (caller entered digits) matches the grammar contained in the
dtmf member, call processing is continued by the document
located at the targetURI.
The targetURI can be a string literal or an expression that
equates to the URI of the next VXML document to be processed.
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
Choice(java.lang.String targetURI)
Creates a new instance of the Choice element. |
|
Choice(java.lang.String targetURI,
Grammar grammar)
Creates a new instance of the Choice element. |
|
Choice(java.lang.String targetURI,
Output output)
Creates a new instance of the Choice element. |
|
Choice(java.lang.String targetURI,
java.lang.String dtmf)
Creates a new instance of the Choice element. |
|
Choice(java.lang.String targetURI,
java.lang.String dtmf,
Grammar grammar)
Creates a new instance of Choice element with the specified
targetURI and grammars, but the output is left initialized to
null. |
|
Choice(java.lang.String targetURI,
java.lang.String dtmf,
Output output)
Creates a new instance of Choice element with the specified
targetURI, DTMF grammar, and output, but the other grammar is left
initialized to null. |
|
Choice(java.lang.String targetURI,
java.lang.String dtmf,
Output output,
Grammar grammar)
Creates a new instance of Choice element with the specified
targetURI, grammars, and output. |
|
| Method Summary | |
|---|---|
java.lang.String |
getDTMF()
Returns the DTMF grammar associated with this Choice. |
Grammar |
getGrammar()
Returns the grammar that describes what input selects this choice. |
Output |
getOutput()
Returns the Output object to play to the caller to describe
this choice |
java.lang.String |
getTargetURI()
Returns the URI of the VXML document the call should be processed by if this Choice is selected. |
void |
setDTMF(java.lang.String dtmf)
Set the simple DTMF grammar that governs the CED the caller uses to select this menu choice. |
void |
setGrammar(Grammar grammar)
Sets the grammar that describes what input selects this choice. |
void |
setOutput(Output output)
Sets the output to be rendered to the caller when this Choice
is enumerated. |
void |
setTargetURI(java.lang.String targetURI)
Sets the URI of the next vxml page to process if this menu choice is selected by the caller. |
protected void |
writeAttributes(org.xml.sax.helpers.AttributesImpl attributes)
Write the attribute members of this condition to the supplied set. |
protected void |
writeGrammar(org.xml.sax.ContentHandler outputHandler)
Write the grammar in this choice to the specified content handler. |
protected void |
writeOutput(org.xml.sax.ContentHandler outputHandler)
Write the output in this choice to the specified content handler. |
void |
writeWidget(org.xml.sax.ContentHandler outputHandler)
Writes the content of this widget to an XML content handler. |
| Methods inherited from class org.eclipse.vtp.framework.interactions.core.support.Widget |
|---|
toString, writeAttribute, writeChildren, writeChildren, writeWidget, writeWidget |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Choice(java.lang.String targetURI)
throws java.lang.IllegalArgumentException,
java.lang.NullPointerException
Choice element. The targetURI
is defined, but the grammars and output are left initially
null.
targetURI - The URI of the next VXML document to process the call.
java.lang.IllegalArgumentException - If supplied target URI is empty.
java.lang.NullPointerException - If supplied target URI is null.
public Choice(java.lang.String targetURI,
java.lang.String dtmf)
throws java.lang.IllegalArgumentException,
java.lang.NullPointerException
Choice element. The targetURI
and DTMF grammar are set, but the other grammar and output are left
initialized to null.
targetURI - The URI of the next VXML document to process the call.dtmf - The DTMF grammar used to match against the caller's CED.
java.lang.IllegalArgumentException - If supplied target URI is empty.
java.lang.IllegalArgumentException - If supplied DTMF value is empty.
java.lang.NullPointerException - If supplied target URI is null.
public Choice(java.lang.String targetURI,
Output output)
throws java.lang.IllegalArgumentException,
java.lang.NullPointerException
Choice element. The targetURI
and output are set, but the grammars are left initialized to
null.
targetURI - The URI of the next VXML document to process the call.output - The TTS and audio output to play to the caller.
java.lang.IllegalArgumentException - If supplied target URI is empty.
java.lang.NullPointerException - If supplied target URI is null.
public Choice(java.lang.String targetURI,
Grammar grammar)
throws java.lang.IllegalArgumentException,
java.lang.NullPointerException
Choice element. The targetURI
and grammar are set, but the DTMF grammar and output are left initialized
to null.
targetURI - The URI of the next VXML document to process the call.grammar - The grammar that describes what input selects this choice.
java.lang.IllegalArgumentException - If supplied target URI is empty.
java.lang.NullPointerException - If supplied target URI is null.
public Choice(java.lang.String targetURI,
java.lang.String dtmf,
Output output)
throws java.lang.IllegalArgumentException,
java.lang.NullPointerException
Choice element with the specified
targetURI, DTMF grammar, and output, but the other grammar is left
initialized to null.
targetURI - The URI of the next VXML document to process the call.dtmf - The DTMF grammar used to match against the caller's CED.output - The TTS and audio output to play to the caller.
java.lang.IllegalArgumentException - If supplied target URI is empty.
java.lang.IllegalArgumentException - If supplied DTMF value is empty.
java.lang.NullPointerException - If supplied target URI is null.
public Choice(java.lang.String targetURI,
java.lang.String dtmf,
Grammar grammar)
throws java.lang.IllegalArgumentException,
java.lang.NullPointerException
Choice element with the specified
targetURI and grammars, but the output is left initialized to
null.
targetURI - The URI of the next VXML document to process the call.dtmf - The DTMF grammar used to match against the caller's CED.grammar - The grammar that describes what input selects this choice.
java.lang.IllegalArgumentException - If supplied target URI is empty.
java.lang.IllegalArgumentException - If supplied DTMF value is empty.
java.lang.NullPointerException - If supplied target URI is null.
public Choice(java.lang.String targetURI,
java.lang.String dtmf,
Output output,
Grammar grammar)
throws java.lang.IllegalArgumentException,
java.lang.NullPointerException
Choice element with the specified
targetURI, grammars, and output.
targetURI - The URI of the next VXML document to process the call.dtmf - The DTMF grammar used to match against the caller's CED.output - The TTS and audio output to play to the caller.grammar - The grammar that describes what input selects this choice.
java.lang.IllegalArgumentException - If supplied target URI is empty.
java.lang.IllegalArgumentException - If supplied DTMF value is empty.
java.lang.NullPointerException - If supplied target URI is null.| Method Detail |
|---|
public java.lang.String getTargetURI()
Choice is selected.
public java.lang.String getDTMF()
Choice.
public Output getOutput()
Output object to play to the caller to describe
this choice
public Grammar getGrammar()
public void setTargetURI(java.lang.String targetURI)
throws java.lang.IllegalArgumentException,
java.lang.NullPointerException
targetURI argument is null or an empty
string.
targetURI - The URI of the next page to process
java.lang.IllegalArgumentException - If supplied target URI is empty.
java.lang.NullPointerException - If supplied target URI is null.
public void setDTMF(java.lang.String dtmf)
throws java.lang.IllegalArgumentException
dtmf - The simple DTMF grammar.
java.lang.IllegalArgumentException - If supplied DTMF value is empty.public void setOutput(Output output)
Choice
is enumerated.
output - The output to play to the caller.public void setGrammar(Grammar grammar)
grammar - The grammar that describes what input selects this choice.
public void writeWidget(org.xml.sax.ContentHandler outputHandler)
throws java.lang.NullPointerException,
org.xml.sax.SAXException
Widget
writeWidget in class WidgetoutputHandler - The handler to write this widget to.
java.lang.NullPointerException - If the supplied content handler is
null.
org.xml.sax.SAXException - If the writing of this widget fails.protected void writeAttributes(org.xml.sax.helpers.AttributesImpl attributes)
attributes - The attribute set to write to.
java.lang.NullPointerException - If the supplied attribute set is
null.
protected void writeGrammar(org.xml.sax.ContentHandler outputHandler)
throws java.lang.NullPointerException,
org.xml.sax.SAXException
outputHandler - The content handler to write to.
java.lang.NullPointerException - If the supplied content handler is
null.
org.xml.sax.SAXException - If the writing of one of the actions fails.
protected void writeOutput(org.xml.sax.ContentHandler outputHandler)
throws java.lang.NullPointerException,
org.xml.sax.SAXException
outputHandler - The content handler to write to.
java.lang.NullPointerException - If the supplied content handler is
null.
org.xml.sax.SAXException - If the writing of one of the actions fails.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||